<ul class="nav">
    {% if active == 'sites' %}
    <li class="active"><a href="/sites">网站管理</a></li>
    {% else %}
    <li><a href="/sites">网站管理</a></li>
    {% endif %}
    {% if user.is_admin == 1 %}
    {% if active == 'users' %}
    <li class="active"><a href="/users">用户管理</a></li>
    {% else %}
    <li><a href="/users">用户管理</a></li>
    {% endif %}
    {% if active == 'nodes' %}
    <li class="active"><a href="/nodes">节点管理</a></li>
    {% else %}
    <li><a href="/nodes">节点管理</a></li>
    {% endif %}
    {% endif %}
</ul>
<ul class="nav pull-right">
    <li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{user.account}}<b class="caret"></b></a>
    <ul class="dropdown-menu">
        <li><a href="#">Action</a></li>
        <li><a href="#">Anotheraction</a></li>
        <li><a href="#">Something else here</a></li>
        <li class="divider"></li>
        <li class="nav-header">Nav header</li>
        <li><a href="#">Separated link</a></li>
        <li><a data-method="delete" href="/account/sign_out">退出</a></li>
    </ul>
    </li>
</ul>
